package com.fenqing.leetcode.code.sword_refers_offer_i;

import com.fenqing.annotations.Execute;
import com.fenqing.core.Topic;

/**
 * @author fenqing
 */
public class Topic64 extends Topic {

    @Execute
    public int sumNums(int n) {
        return (1 + n) * n / 2;
    }

    public static void main(String[] args) {
        Object run = new Topic64().run("9");
        System.out.println(run);
    }

}
